import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: r => require.ensure([], () => r(require('../views/HelloWorld/HelloWorld')), 'route')
    },
    {
      path: '/index',
      name: 'index',
      component: r => require.ensure([], () => r(require('../views/Home')), 'route')
    }
  ]
})
